
<!DOCTYPE HTML>
<html lang="zh-hans" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>5.3内存管理 · zhoufei-iosknowledges</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="zhoufei">
        
        
    
    <link rel="stylesheet" href="../../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-splitter/splitter.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchors/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-donate/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    

        
    
    
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="5.4.html" />
    
    
    <link rel="prev" href="5.2.html" />
    

    
        <link rel="shortcut icon" href='../../source/images/favicon.jpg' type="image/x-icon">
    
    
        <link rel="bookmark" href='../../source/images/favicon.jpg' type="image/x-icon">
    
    
        <link rel="apple-touch-icon" href='../../source/images/apple-touch-icon.jpg'>
    
    
        
        <link rel="apple-touch-icon" sizes="120x120" href="../../source/images/apple-touch-icon.jpg">
        
        <link rel="apple-touch-icon" sizes="180x180" href="../../source/images/apple-touch-icon.jpg">
        
    

    <style>
    @media only screen and (max-width: 640px) {
        .book-header .hidden-mobile {
            display: none;
        }
    }
    </style>
    <script>
        window["gitbook-plugin-github-buttons"] = {"buttons":[{"user":"zhou415770319","repo":"iosKnowledges","type":"star","size":"small","count":true}]};
    </script>

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="输入并搜索" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    
    
        
        <li>
            <a href="http://www.feiyum.cn/index/" target="_blank" class="custom-link">我的博客</a>
        </li>
    
    

    
    <li class="divider"></li>
    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../../">
            
                <a href="../../">
            
                    
                    iOS面试题总结
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../ui/ui.html">
            
                <a href="../ui/ui.html">
            
                    
                    1、UI视图相关面试题
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../ui/UITableview.html">
            
                <a href="../ui/UITableview.html">
            
                    
                    1.1UITableview相关面试题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../ui/shujutongbu.html">
            
                <a href="../ui/shujutongbu.html">
            
                    
                    1.2数据源同步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="../ui/shijianchuandi.html">
            
                <a href="../ui/shijianchuandi.html">
            
                    
                    1.3UI事件传递与响应
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="../ui/tuxiangxianshi.html">
            
                <a href="../ui/tuxiangxianshi.html">
            
                    
                    1.4UI图像显示原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="../ui/kadundiaozheng.html">
            
                <a href="../ui/kadundiaozheng.html">
            
                    
                    1.5UI卡顿掉帧原因
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="../ui/yibuhuizhi.html">
            
                <a href="../ui/yibuhuizhi.html">
            
                    
                    1.6异步绘制原理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="../ui/lipingxuanran.html">
            
                <a href="../ui/lipingxuanran.html">
            
                    
                    1.7离屏渲染
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../oc/2.html">
            
                <a href="../oc/2.html">
            
                    
                    2、OC语言
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../oc/2.1.html">
            
                <a href="../oc/2.1.html">
            
                    
                    2.1OC相关面试题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../oc/2.2.html">
            
                <a href="../oc/2.2.html">
            
                    
                    2.2分类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../oc/2_4.html">
            
                <a href="../oc/2_4.html">
            
                    
                    2.4扩展
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../oc/2.5.html">
            
                <a href="../oc/2.5.html">
            
                    
                    2.5代理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../oc/2.6.html">
            
                <a href="../oc/2.6.html">
            
                    
                    2.6通知
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../oc/2.7.html">
            
                <a href="../oc/2.7.html">
            
                    
                    2.7KVO
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../oc/2.8.html">
            
                <a href="../oc/2.8.html">
            
                    
                    2.8KVC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.8" data-path="../oc/2.9.html">
            
                <a href="../oc/2.9.html">
            
                    
                    2.9属性关键字
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../runtime/3.html">
            
                <a href="../runtime/3.html">
            
                    
                    3、Runtime
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../runtime/3.1.html">
            
                <a href="../runtime/3.1.html">
            
                    
                    3.1对象、类对象、元类对象
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../runtime/3.2.html">
            
                <a href="../runtime/3.2.html">
            
                    
                    3.2消息传递机制
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../runtime/3.3.html">
            
                <a href="../runtime/3.3.html">
            
                    
                    3.3消息转发流程
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../runtime/3.4.html">
            
                <a href="../runtime/3.4.html">
            
                    
                    3.4Method-Swizzling
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../neicun/4.html">
            
                <a href="../neicun/4.html">
            
                    
                    4、内存
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../neicun/4.1.html">
            
                <a href="../neicun/4.1.html">
            
                    
                    4.1引用计数表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../neicun/4.2.html">
            
                <a href="../neicun/4.2.html">
            
                    
                    4.2弱引用表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../neicun/4.3.html">
            
                <a href="../neicun/4.3.html">
            
                    
                    4.3ARC、MRC
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../neicun/4.4.html">
            
                <a href="../neicun/4.4.html">
            
                    
                    4.4循环引用
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../neicun/4.5.html">
            
                <a href="../neicun/4.5.html">
            
                    
                    4.5内存管理
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="5.html">
            
                <a href="5.html">
            
                    
                    5、Block
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="5.1.html">
            
                <a href="5.1.html">
            
                    
                    5.1Block本质
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="5.2.html">
            
                <a href="5.2.html">
            
                    
                    5.2截获变量特性
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.6.3" data-path="5.3.html">
            
                <a href="5.3.html">
            
                    
                    5.3内存管理
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="5.4.html">
            
                <a href="5.4.html">
            
                    
                    5.4循环引用
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../duoxiancheng/6.html">
            
                <a href="../duoxiancheng/6.html">
            
                    
                    6、多线程
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../duoxiancheng/6.1.html">
            
                <a href="../duoxiancheng/6.1.html">
            
                    
                    6.1GCD、nsoperation
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../duoxiancheng/6.2.html">
            
                <a href="../duoxiancheng/6.2.html">
            
                    
                    6.2资源共享
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../duoxiancheng/6.3.html">
            
                <a href="../duoxiancheng/6.3.html">
            
                    
                    6.3线程同步
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../duoxiancheng/6.4.html">
            
                <a href="../duoxiancheng/6.4.html">
            
                    
                    6.4SpinLock等
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../runloop/7.md">
            
                <span>
            
                    
                    7、RunLoop
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../runloop/7.1.md">
            
                <span>
            
                    
                    7.1事件循环
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../runloop/7.2.md">
            
                <span>
            
                    
                    7.2用户态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../runloop/7.3.md">
            
                <span>
            
                    
                    7.3核心态
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../runloop/7.4.md">
            
                <span>
            
                    
                    7.4常驻线程
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../network/8.md">
            
                <span>
            
                    
                    8、网络
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../network/8.1.md">
            
                <span>
            
                    
                    8.1HTTPS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../network/8.2.md">
            
                <span>
            
                    
                    8.2对称加密算法
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../network/8.3.md">
            
                <span>
            
                    
                    8.3非对称加密
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../network/8.4.md">
            
                <span>
            
                    
                    8.4DNS解析
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../network/8.5.md">
            
                <span>
            
                    
                    8.5HTTP、TCP
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本书使用 GitBook 发布
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../.." >5.3内存管理</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><ul><li><span class="title-icon "></span><a href="#&#x5185;&#x5B58;&#x7BA1;&#x7406;"><b></b>&#x5185;&#x5B58;&#x7BA1;&#x7406;</a></li></ul></ul></div><a href="#" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h2 id="&#x5185;&#x5B58;&#x7BA1;&#x7406;"><a name="&#x5185;&#x5B58;&#x7BA1;&#x7406;" class="anchor-navigation-ex-anchor" href="#&#x5185;&#x5B58;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x5185;&#x5B58;&#x7BA1;&#x7406;" class="plugin-anchor" href="#&#x5185;&#x5B58;&#x7BA1;&#x7406;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x5185;&#x5B58;&#x7BA1;&#x7406;</h2>
<h4 id="&#x4E00;&#x3001;&#x524D;&#x8A00;&#xFF1A;"><a name="&#x4E00;&#x3001;&#x524D;&#x8A00;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x4E00;&#x3001;&#x524D;&#x8A00;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x4E00;&#x3001;&#x524D;&#x8A00;&#xFF1A;" class="plugin-anchor" href="#&#x4E00;&#x3001;&#x524D;&#x8A00;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E00;&#x3001;&#x524D;&#x8A00;&#xFF1A;</h4>
<p> Block&#x662F;Objective-C&#x4E2D;&#x7684;&#x4E00;&#x9879;&#x5F3A;&#x5927;&#x7684;&#x7279;&#x6027;&#xFF0C;Block&#x53EF;&#x4EE5;&#x770B;&#x4F5C;&#x662F;OC&#x4E2D;&#x5BF9;&#x4E8E;&#x95ED;&#x5305;&#x51FD;&#x6570;&#x7684;&#x5B9E;&#x73B0;&#xFF0C;&#x5B9E;&#x8D28;&#x4E0A;Block&#x4E5F;&#x662F;&#x4E00;&#x4E2A;&#x5BF9;&#x8C61;~</p>
<h4 id="&#x4E8C;&#x3001;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;"><a name="&#x4E8C;&#x3001;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x4E8C;&#x3001;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x4E8C;&#x3001;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;" class="plugin-anchor" href="#&#x4E8C;&#x3001;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E8C;&#x3001;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;</h4>
<p><strong>OC&#x4E2D;&#x7684;&#x5404;&#x4E2A;&#x4E3B;&#x8981;&#x7684;&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;&#xFF1A;&#x5305;&#x62EC;&#x6709;--&#x6808;&#x533A;&#x3001;&#x5806;&#x533A;&#x3001;&#x5E38;&#x91CF;&#x533A;&#x3001;&#x5168;&#x5C40;&#x9759;&#x6001;&#x533A;&#x3001;&#x6587;&#x672C;&#x533A;&#xFF08;&#x4EE3;&#x7801;&#x533A;&#xFF09;</strong></p>
<p><img src="../../img/ui-5-3-1.png" alt="img"></p>
<p>&#x5185;&#x5B58;&#x5206;&#x914D;&#x533A;&#x57DF;</p>
<p>&#x6808;&#x533A;&#xFF1A;&#x5B58;&#x653E;&#x51FD;&#x6570;&#x53C2;&#x6570;&#x503C;&#x3001;&#x5C40;&#x90E8;&#x53D8;&#x91CF;&#x3001;&#x51FD;&#x6570;&#x8FD4;&#x56DE;&#x5730;&#x5740;&#x7B49;&#xFF0C;&#x6211;&#x4EEC;&#x6BCF;&#x6B21;&#x8C03;&#x7528;&#x51FD;&#x6570;&#xFF0C;&#x90FD;&#x4F1A;&#x6267;&#x884C;&#x538B;&#x6808;&#x64CD;&#x4F5C;(&#x5728;XCode&#x7684;&#x5DE6;&#x4FA7;&#x9762;&#x677F;&#x4F1A;&#x770B;&#x5230;&#x4E00;&#x5806;&#x7684;&#x51FD;&#x6570;&#x8C03;&#x7528;&#x6808;)&#x3002;&#x7279;&#x70B9;&#x662F;&#x5B58;&#x53D6;&#x6548;&#x7387;&#x9AD8;&#xFF0C;&#x5B58;&#x53D6;&#x7ED3;&#x6784;&#x8FDE;&#x7EED;&#xFF0C;&#x4F46;&#x662F;&#x7A7A;&#x95F4;&#x5F88;&#x5C0F;&#xFF0C;&#x6709;&#x7CFB;&#x7EDF;&#x81EA;&#x884C;&#x5206;&#x914D;&#x4EE5;&#x53CA;&#x7BA1;&#x7406;&#x6808;&#x7684;&#x5730;&#x5740;&#x7A7A;&#x95F4;&#x3002;</p>
<p>&#x5806;&#x533A;&#xFF1A;&#x8FD9;&#x4E2A;&#x4F7F;&#x6211;&#x4EEC;&#x5F00;&#x53D1;&#x8005;&#x9700;&#x8981;&#x91CD;&#x70B9;&#x5173;&#x6CE8;&#x7684;&#x5185;&#x5B58;&#x533A;&#x57DF;&#xFF0C;&#x56E0;&#x4E3A;&#x5E73;&#x65F6;&#x6D89;&#x53CA;&#x5230;&#x5185;&#x5B58;&#x7BA1;&#x7406;&#x57FA;&#x672C;&#x4E0A;&#x51FA;&#x81EA;&#x4E8E;&#x8FD9;&#x4E2A;&#x533A;&#x57DF;&#x3002;&#x7531;malloc&#x3001;alloc&#x3001;copy(&#x6DF1;&#x590D;&#x5236;)&#x3001;new&#x7B49;&#x65B9;&#x6CD5;&#x89E6;&#x53D1;&#x7684;&#x6548;&#x679C;&#x5C31;&#x662F;&#x5728;&#x5806;&#x533A;&#x8FDB;&#x884C;&#x5185;&#x5B58;&#x5206;&#x914D;&#x3002;&#x5728;ARC&#x7684;&#x73AF;&#x5883;&#x4E0B;&#xFF0C;&#x7CFB;&#x7EDF;&#x5E2E;&#x52A9;&#x6211;&#x4EEC;&#x6839;&#x636E;&#x5BF9;&#x8C61;&#x7684;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#x53BB;&#x7BA1;&#x7406;&#x8FD9;&#x4E2A;&#x533A;&#x57DF;&#x7684;&#x5185;&#x5B58;&#x5206;&#x914D;&#x4EE5;&#x53CA;&#x662F;&#x91CA;&#x653E;&#xFF0C;&#x4F46;&#x6211;&#x4EEC;&#x4E5F;&#x8981;&#x65F6;&#x523B;&#x6CE8;&#x610F;&#x8BE5;&#x533A;&#x57DF;&#x7684;&#x5185;&#x5B58;&#x4F7F;&#x7528;&#x60C5;&#x51B5;&#xFF1B;&#x800C;&#x5728;MRC&#x7684;&#x73AF;&#x5883;&#x4E0B;&#x5219;&#x9700;&#x8981;&#x5F00;&#x53D1;&#x8005;&#x65F6;&#x65F6;&#x523B;&#x523B;&#x6CE8;&#x610F;&#x8FD9;&#x4E2A;&#x533A;&#x57DF;&#x7684;&#x5185;&#x5B58;&#x4F7F;&#x7528;&#x60C5;&#x51B5;&#xFF0C;&#x5426;&#x5219;&#x540E;&#x679C;&#x4F60;&#x61C2;&#x7684;~</p>
<p>&#x9759;&#x6001;&#x533A;&#xFF1A;&#x8BE5;&#x533A;&#x57DF;&#x5176;&#x5B9E;&#x7EC6;&#x5206;&#x4E3A;&#x6570;&#x636E;&#x533A;&#x4EE5;&#x53CA;BSS&#x533A;&#x3002;&#x6570;&#x636E;&#x533A;&#x5B58;&#x653E;&#x5DF2;&#x7ECF;&#x521D;&#x59CB;&#x5316;&#x597D;&#x7684;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x4EE5;&#x53CA;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x800C;BSS&#x533A;&#x5219;&#x5B58;&#x653E;&#x8FD8;&#x6CA1;&#x6709;&#x521D;&#x59CB;&#x5316;&#x597D;&#x7684;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x4EE5;&#x53CA;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x7531;&#x7CFB;&#x7EDF;&#x8D1F;&#x8D23;&#x91CA;&#x653E;&#x4EE5;&#x53CA;&#x5206;&#x914D;&#x3002;</p>
<p>&#x5E38;&#x91CF;&#x533A;&#xFF1A;&#x5B58;&#x653E;&#x5E38;&#x91CF;&#xFF0C;&#x7531;&#x7CFB;&#x7EDF;&#x91CA;&#x653E;&#x4EE5;&#x53CA;&#x5206;&#x914D;&#x3002;</p>
<p>&#x4EE3;&#x7801;&#x533A; (&#x6587;&#x672C;&#x533A;) &#xFF1A;&#x5B58;&#x653E;&#x51FD;&#x6570;&#x4F53;&#x4EE3;&#x7801;&#x3002;</p>
<h4 id="&#x4E09;&#x3001;block&#x7684;&#x4E09;&#x79CD;&#x5206;&#x7C7B;&#xFF1A;"><a name="&#x4E09;&#x3001;block&#x7684;&#x4E09;&#x79CD;&#x5206;&#x7C7B;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x4E09;&#x3001;block&#x7684;&#x4E09;&#x79CD;&#x5206;&#x7C7B;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x4E09;&#x3001;block&#x7684;&#x4E09;&#x79CD;&#x5206;&#x7C7B;&#xFF1A;" class="plugin-anchor" href="#&#x4E09;&#x3001;block&#x7684;&#x4E09;&#x79CD;&#x5206;&#x7C7B;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a>&#x4E09;&#x3001;Block&#x7684;&#x4E09;&#x79CD;&#x5206;&#x7C7B;&#xFF1A;</h4>
<p><strong>&#x5168;&#x5C40;&#x533A;&#x7684;Block&#xFF1A;<strong>NSGlobalBlock</strong>&#xFF1B;</strong></p>
<p><strong>&#x6808;&#x533A;&#x7684;Block&#xFF1A;<strong>NSStackBlock</strong>&#xFF1B;</strong></p>
<p><strong>&#x5806;&#x533A;&#x7684;Block&#xFF1A;<strong>NSMallocBlock</strong>&#xFF1B;</strong></p>
<p>1&#x3001;<strong><strong>NSGlobalBlock</strong>&#xFF1A;</strong></p>
<p><strong>&#x5F53;&#x6211;&#x4EEC;&#x58F0;&#x660E;&#x4E00;&#x4E2A;block&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x8FD9;&#x4E2A;block&#x6CA1;&#x6709;&#x6355;&#x83B7;&#x5916;&#x90E8;&#x7684;&#x53D8;&#x91CF;&#xFF0C;&#x90A3;&#x4E48;&#x8FD9;&#x4E2A;block&#x5C31;&#x4F4D;&#x4E8E;&#x5168;&#x5C40;&#x533A;&#xFF0C;&#x6B64;&#x65F6;&#x5BF9;NSGlobalBlock&#x7684;retain&#x3001;copy&#x3001;release&#x64CD;&#x4F5C;&#x90FD;&#x65E0;&#x6548;&#x3002;ARC&#x548C;MRC&#x73AF;&#x5883;&#x4E0B;&#x90FD;&#x662F;&#x5982;&#x6B64;&#x3002;</strong></p>
<p><img src="../../img/ui-5-3-2.jpg" alt="img"></p>
<p>&#x5982;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x58F0;&#x660E;&#x5E76;&#x4E14;&#x5B9A;&#x4E49;&#x4E00;&#x4E2A;&#x5168;&#x5C40;&#x533A;&#x7684;block</p>
<p>2&#x3001;<strong><strong>NSStackBlock</strong>&#xFF1A;</strong></p>
<p>  <strong>&#x8FD9;&#x91CC;&#x53EF;&#x80FD;&#x6709;&#x4EBA;&#x4F1A;&#x95EE;&#xFF0C;&#x5E73;&#x65F6;&#x7F16;&#x7A0B;&#x7684;&#x65F6;&#x5019;&#x5F88;&#x5C11;&#x9047;&#x5230;&#x4F4D;&#x4E8E;&#x6808;&#x533A;&#x7684;block&#xFF0C;&#x4E3A;&#x4EC0;&#x4E48;&#x5462;&#xFF1F;&#x56E0;&#x4E3A;&#x5728;ARC&#x73AF;&#x5883;&#x4E0B;&#xFF0C;&#x5F53;&#x6211;&#x4EEC;&#x58F0;&#x660E;&#x5E76;&#x4E14;&#x5B9A;&#x4E49;&#x4E86;&#x4E00;&#x4E2A;block&#xFF0C;&#x5E76;&#x4E14;&#x6CA1;&#x6709;&#x4E3A;Block&#x6DFB;&#x52A0;&#x989D;&#x5916;&#x7684;&#x4FEE;&#x9970;&#x7B26;&#xFF08;&#x9ED8;&#x8BA4;&#x662F;<strong>strong&#x4FEE;&#x9970;&#x7B26;&#xFF09;&#xFF0C;&#x5982;&#x679C;&#x8BE5;Block&#x6355;&#x83B7;&#x4E86;&#x5916;&#x90E8;&#x7684;&#x53D8;&#x91CF;&#xFF0C;&#x5B9E;&#x8D28;&#x4E0A;&#x662F;&#x6709;&#x4E00;&#x4E2A;&#x4ECE;</strong>NSStackBlock<strong>&#x8F6C;&#x53D8;&#x5230;</strong>NSMallocBlock__&#x7684;&#x8FC7;&#x7A0B;&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x662F;&#x7CFB;&#x7EDF;&#x5E2E;&#x6211;&#x4EEC;&#x5B8C;&#x6210;&#x4E86;copy&#x64CD;&#x4F5C;&#xFF0C;&#x5C06;&#x6808;&#x533A;&#x7684;block&#x8FC1;&#x79FB;&#x5230;&#x5806;&#x533A;&#xFF0C;&#x5EF6;&#x957F;&#x4E86;Block&#x7684;&#x751F;&#x547D;&#x5468;&#x671F;&#x3002;&#x5BF9;&#x4E8E;&#x6808;&#x533A;block&#x800C;&#x8A00;&#xFF0C;&#x6808;block&#x5728;&#x5F53;&#x51FD;&#x6570;&#x9000;&#x51FA;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x8BE5;&#x7A7A;&#x95F4;&#x5C31;&#x4F1A;&#x88AB;&#x56DE;&#x6536;&#x3002;</strong></p>
<p>   <strong>&#x90A3;&#x4EC0;&#x4E48;&#x65F6;&#x5019;&#x5728;ARC&#x7684;&#x73AF;&#x5883;&#x4E0B;&#x51FA;&#x73B0;<strong>NSStackBlock</strong>&#x5462;&#xFF1F;&#x5982;&#x679C;&#x6211;&#x4EEC;&#x5728;&#x58F0;&#x660E;&#x4E00;&#x4E2A;block&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x4F7F;&#x7528;&#x4E86;<strong>weak&#x6216;&#x8005;</strong>unsafe__unretained&#x7684;&#x4FEE;&#x9970;&#x7B26;&#xFF0C;&#x90A3;&#x4E48;&#x7CFB;&#x7EDF;&#x5C31;&#x4E0D;&#x4F1A;&#x4E3A;&#x6211;&#x4EEC;&#x505A;copy&#x7684;&#x64CD;&#x4F5C;&#xFF0C;&#x4E0D;&#x4F1A;&#x5C06;&#x5176;&#x8FC1;&#x79FB;&#x5230;&#x5806;&#x533A;&#x3002;&#x4E0B;&#x9762;&#x6211;&#x4EEC;&#x5B9E;&#x9A8C;&#x4E00;&#x4E0B;&#xFF1A;</strong></p>
<p><img src="../../img/ui-5-3-3.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-4.jpg" alt="img"></p>
<p>&#x5982;&#x4E0A;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x88AB;__weak&#x4FEE;&#x9970;&#x7684;myBlock1&#x6355;&#x83B7;&#x4E86;&#x5916;&#x90E8;&#x53D8;&#x91CF;n&#xFF0C;&#x6210;&#x4E3A;&#x4E00;&#x4E2A;&#x6808;&#x533A;&#x7684;block</p>
<p><img src="../../img/ui-5-3-5.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-6.jpg" alt="img"></p>
<p>&#x9ED8;&#x8BA4;&#x4FEE;&#x9970;&#x7B26;&#x73AF;&#x5883;&#x4E0B;&#xFF0C;&#x6355;&#x83B7;&#x4E86;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;block&#x4F4D;&#x4E8E;&#x5806;&#x533A;</p>
<p>&#x6211;&#x4EEC;&#x53EF;&#x4EE5;&#x624B;&#x52A8;&#x5730;&#x53BB;&#x6267;&#x884C;copy&#x65B9;&#x6CD5;&#xFF0C;&#x9A8C;&#x8BC1;&#x7CFB;&#x7EDF;&#x4E3A;&#x6211;&#x4EEC;&#x505A;&#x7684;&#x9690;&#x5F0F;&#x8F6C;&#x6362;&#xFF1A;</p>
<p><img src="../../img/ui-5-3-7.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-8.jpg" alt="img"></p>
<p>&#x5982;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x624B;&#x52A8;&#x6267;&#x884C;copy&#x65B9;&#x6CD5;&#x4E4B;&#x540E;&#xFF0C;block&#x88AB;&#x8FC1;&#x79FB;&#x5230;&#x4E86;&#x5806;&#x533A;</p>
<p>3&#x3001;<strong><strong>NSMallocBlock</strong>&#xFF1A;</strong></p>
<p><strong>&#x5728;MRC&#x73AF;&#x5883;&#x4E0B;&#xFF0C;&#x6211;&#x4EEC;&#x9700;&#x8981;&#x624B;&#x52A8;&#x8C03;&#x7528;copy&#x65B9;&#x6CD5;&#x624D;&#x53EF;&#x4EE5;&#x5C06;block&#x8FC1;&#x79FB;&#x5230;&#x5806;&#x533A;&#xFF0C;&#x800C;&#x5728;ARC&#x73AF;&#x5883;&#x4E0B;&#xFF0C;__strong&#x4FEE;&#x9970;&#x7684;&#xFF08;&#x9ED8;&#x8BA4;&#xFF09;block&#x53EA;&#x8981;&#x6355;&#x83B7;&#x4E86;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x5C31;&#x4F1A;&#x4F4D;&#x4E8E;&#x5806;&#x533A;&#xFF0C;NSMallocBlock&#x652F;&#x6301;retain&#x3001;release&#xFF0C;&#x4F1A;&#x5BF9;&#x5176;&#x5F15;&#x7528;&#x8BA1;&#x6570;&#xFF0B;1&#x6216; -1&#x3002;&#x58F0;&#x660E;&#x4EE5;&#x53CA;&#x5B9A;&#x4E49;&#x4F4D;&#x4E8E;&#x5806;&#x533A;&#x7684;block&#x5982;&#x4E0A;&#x56FE;&#x6240;&#x793A;&#x3002;</strong></p>
<h4 id="&#x56DB;&#x3001;block&#x5BF9;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5B58;&#x53D6;&#xFF1A;"><a name="&#x56DB;&#x3001;block&#x5BF9;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5B58;&#x53D6;&#xFF1A;" class="anchor-navigation-ex-anchor" href="#&#x56DB;&#x3001;block&#x5BF9;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5B58;&#x53D6;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a><a name="&#x56DB;&#x3001;block&#x5BF9;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5B58;&#x53D6;&#xFF1A;" class="plugin-anchor" href="#&#x56DB;&#x3001;block&#x5BF9;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5B58;&#x53D6;&#xFF1A;"><i class="fa fa-link" aria-hidden="true"></i></a><strong>&#x56DB;&#x3001;block&#x5BF9;&#x4E0D;&#x540C;&#x7C7B;&#x578B;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5B58;&#x53D6;&#xFF1A;</strong></h4>
<p>1&#x3001;&#x4F17;&#x6240;&#x5468;&#x77E5;&#xFF0C;&#x5BF9;&#x4E8E;block&#x6355;&#x83B7;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#xFF0C;block &#x9ED8;&#x8BA4;&#x662F;&#x5C06;&#x5176;&#x590D;&#x5236;&#x5230;&#x5176;&#x6570;&#x636E;&#x7ED3;&#x6784;&#x4E2D;&#x6765;&#x5B9E;&#x73B0;&#x8BBF;&#x95EE;&#x7684;&#xFF0C;&#x56E0;&#x6B64;&#xFF0C;&#x5BF9;&#x4E8E;&#x6355;&#x83B7;&#x7684;&#x666E;&#x901A;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#xFF0C;block&#x5E76;&#x4E0D;&#x80FD;&#x4F5C;&#x51FA;&#x4FEE;&#x6539;&#x3002;&#x6211;&#x4EEC;&#x8981;&#x6539;&#x53D8;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5185;&#x5B58;&#x5730;&#x5740;&#xFF0C;&#x4E5F;&#x5C31;&#x662F;&#x4F7F;&#x7528;__block&#x4FEE;&#x9970;&#x7B26;&#x5C06;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x5728;&#x6808;&#x4E2D;&#x6307;&#x9488;&#x7684;&#x5185;&#x5B58;&#x5730;&#x5740;&#xFF0C;&#x8FC1;&#x79FB;&#x5230;&#x5806;&#x533A;&#x4E2D;&#x6765;&#x3002;&#x4E3A;&#x4EC0;&#x4E48;&#x8981;&#x8FD9;&#x6837;&#x8BBE;&#x8BA1;&#x5462;&#xFF0C;&#x6211;&#x4EEC;&#x5F15;&#x7528;@ChenYiLong&#x7684;&#x4E00;&#x53E5;&#x8BDD;&#xFF1A;</p>
<blockquote>
<p>Apple&#x8FD9;&#x6837;&#x8BBE;&#x8BA1;&#xFF0C;&#x5E94;&#x8BE5;&#x662F;&#x8003;&#x8651;&#x5230;&#x4E86;block&#x7684;&#x7279;&#x6B8A;&#x6027;&#xFF0C;block&#x4E5F;&#x5C5E;&#x4E8E;&#x201C;&#x51FD;&#x6570;&#x201D;&#x7684;&#x8303;&#x7574;&#xFF0C;&#x53D8;&#x91CF;&#x8FDB;&#x5165;block&#xFF0C;&#x5B9E;&#x9645;&#x5C31;&#x662F;&#x5DF2;&#x7ECF;&#x6539;&#x53D8;&#x4E86;&#x4F5C;&#x7528;&#x57DF;&#x3002;&#x5728;&#x51E0;&#x4E2A;&#x4F5C;&#x7528;&#x57DF;&#x4E4B;&#x95F4;&#x8FDB;&#x884C;&#x5207;&#x6362;&#x65F6;&#xFF0C;&#x5982;&#x679C;&#x4E0D;&#x52A0;&#x4E0A;&#x8FD9;&#x6837;&#x7684;&#x9650;&#x5236;&#xFF0C;&#x53D8;&#x91CF;&#x7684;&#x53EF;&#x7EF4;&#x62A4;&#x6027;&#x5C06;&#x5927;&#x5927;&#x964D;&#x4F4E;&#x3002;&#x53C8;&#x6BD4;&#x5982;&#x6211;&#x60F3;&#x5728;block&#x5185;&#x58F0;&#x660E;&#x4E86;&#x4E00;&#x4E2A;&#x4E0E;&#x5916;&#x90E8;&#x540C;&#x540D;&#x7684;&#x53D8;&#x91CF;&#xFF0C;&#x6B64;&#x65F6;&#x662F;&#x5141;&#x8BB8;&#x5462;&#x8FD8;&#x662F;&#x4E0D;&#x5141;&#x8BB8;&#x5462;&#xFF1F;&#x53EA;&#x6709;&#x52A0;&#x4E0A;&#x4E86;&#x8FD9;&#x6837;&#x7684;&#x9650;&#x5236;&#xFF0C;&#x8FD9;&#x6837;&#x7684;&#x60C5;&#x666F;&#x624D;&#x80FD;&#x5B9E;&#x73B0;&#x3002;&#x4E8E;&#x662F;&#x6808;&#x533A;&#x53D8;&#x6210;&#x4E86;&#x7EA2;&#x706F;&#x533A;&#xFF0C;&#x5806;&#x533A;&#x53D8;&#x6210;&#x4E86;&#x7EFF;&#x706F;&#x533A;&#x3002;</p>
</blockquote>
<p>&#x56E0;&#x6B64;&#xFF0C;__block&#x4FEE;&#x9970;&#x7B26;&#x7684;&#x6839;&#x672C;&#x64CD;&#x4F5C;&#x5C31;&#x662F;&#x6539;&#x53D8;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#x5185;&#x5B58;&#x5730;&#x5740;&#xFF0C;&#x5E76;&#x4E0D;&#x662F;&#x7B80;&#x5355;&#x5730;&#x4F7F;&#x5F97;&#x5199;&#x64CD;&#x4F5C;&#x751F;&#x6548;&#x3002;</p>
<p>2&#x3001;&#x6B64;&#x5916;&#xFF0C;&#x5982;&#x679C;&#x5C06;block&#x6355;&#x83B7;&#x7684;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x4F7F;&#x7528;static&#x4FEE;&#x9970;&#x6216;&#x8005;&#x5C06;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x58F0;&#x660E;&#x4E3A;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#xFF0C;&#x90A3;&#x4E48;block&#x662F;&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4FEE;&#x6539;&#x8BE5;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#x7684;&#xFF0C;&#x56E0;&#x4E3A;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x6216;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x5728;&#x5185;&#x5B58;&#x4E2D;&#x7684;&#x5730;&#x5740;&#x662F;&#x56FA;&#x5B9A;&#x7684;&#xFF08;&#x5B58;&#x653E;&#x4E8E;&#x4E0A;&#x6587;&#x4E2D;&#x7684;&#x9759;&#x6001;&#x533A;&#xFF09;&#xFF0C;Block&#x5728;&#x8BFB;&#x53D6;&#x8BE5;&#x53D8;&#x91CF;&#x503C;&#x7684;&#x65F6;&#x5019;&#x662F;&#x76F4;&#x63A5;&#x4ECE;&#x5176;&#x6240;&#x5728;&#x5185;&#x5B58;&#x8BFB;&#x51FA;&#xFF0C;&#x83B7;&#x53D6;&#x5230;&#x7684;&#x662F;&#x6700;&#x65B0;&#x503C;&#xFF0C;&#x800C;&#x4E0D;&#x662F;&#x5728;&#x5B9A;&#x4E49;&#x65F6;copy&#x7684;&#x5E38;&#x91CF;&#x3002;</p>
<p><img src="../../img/ui-5-3-9.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-10.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-11.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-12.jpg" alt="img"></p>
<p><img src="../../img/ui-5-3-13.jpg" alt="img"></p>
<p>&#x5982;&#x4E0A;&#x56FE;&#x6240;&#x793A;&#xFF0C;&#x6355;&#x83B7;&#x4E86;&#x9759;&#x6001;&#x53D8;&#x91CF;&#x4EE5;&#x53CA;&#x5168;&#x5C40;&#x53D8;&#x91CF;&#x7684;block&#x53EF;&#x4EE5;&#x76F4;&#x63A5;&#x4FEE;&#x6539;&#x5B83;&#x4EEC;&#x7684;&#x503C;&#xFF0C;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;&#x867D;&#x7136;&#x6B64;&#x65F6;block&#x6355;&#x83B7;&#x4E86;&#x5916;&#x90E8;&#x53D8;&#x91CF;&#xFF0C;&#x4F46;&#x662F;&#x4ECD;&#x7136;&#x662F;&#x4F4D;&#x4E8E;&#x5168;&#x5C40;&#x533A;&#x7684;block&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="5.2.html" class="navigation navigation-prev " aria-label="Previous page: 5.2截获变量特性">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="5.4.html" class="navigation navigation-next " aria-label="Next page: 5.4循环引用">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"5.3内存管理","level":"1.6.3","depth":2,"next":{"title":"5.4循环引用","level":"1.6.4","depth":2,"path":"md/block/5.4.md","ref":"md/block/5.4.md","articles":[]},"previous":{"title":"5.2截获变量特性","level":"1.6.2","depth":2,"path":"md/block/5.2.md","ref":"md/block/5.2.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","splitter","expandable-chapters-small","anchors","github","github-buttons","donate","sharing-plus","anchor-navigation-ex","favicon","livereload"],"styles":{"website":"./styles/website.css","ebook":"styles/ebook.css","pdf":"styles/pdf.css","mobi":"styles/mobi.css","epub":"styles/epub.css"},"pluginsConfig":{"github":{"url":"https://github.com/zhou415770319"},"livereload":{},"splitter":{},"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"donate":{"alipay":"../../img/alipay.JPG","alipayText":" ","button":"赞赏","title":"","wechat":"","wechatText":"微信打赏"},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"mode":"float","multipleH1":true,"pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"printLog":false,"showGoTop":true,"showLevel":false},"favicon":{"shortcut":"./source/images/favicon.jpg","bookmark":"./source/images/favicon.jpg","appleTouch":"./source/images/apple-touch-icon.jpg","appleTouchMore":{"120x120":"./source/images/apple-touch-icon.jpg","180x180":"./source/images/apple-touch-icon.jpg"}},"github-buttons":{"buttons":[{"user":"zhou415770319","repo":"iosKnowledges","type":"star","size":"small","count":true}]},"expandable-chapters-small":{},"sharing":{"qq":false,"all":["google","facebook","weibo","twitter","qq","qzone","linkedin","pocket"],"douban":false,"facebook":false,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"anchors":{}},"theme":"default","author":"zhoufei","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"zhoufei-iosknowledges","language":"zh-hans","links":{"sidebar":{"我的博客":"http://www.feiyum.cn/index/"}},"gitbook":"3.2.3","description":"ios面试知识点总结"},"file":{"path":"md/block/5.3.md","mtime":"2019-05-03T14:40:51.304Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2019-05-03T14:51:39.741Z"},"basePath":"../..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../../gitbook/gitbook.js"></script>
    <script src="../../gitbook/theme.js"></script>
    
        
        <script src="../../gitbook/gitbook-plugin-splitter/splitter.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-expandable-chapters-small/expandable-chapters-small.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-github-buttons/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-donate/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

